NetApi
All URIs are relative to //api.estuary.tech/
Method | HTTP request | Description |
---|---|---|
adminMinersGet | GET /admin/miners/ | Get all miners |
publicMinersFailuresMinerGet | GET /public/miners/failures/{miner} | Get all miners |
publicNetAddrsGet | GET /public/net/addrs | Net Addrs |
publicNetPeersGet | GET /public/net/peers | Net Peers |
adminMinersGet
ApiMinerResp adminMinersGet()
Get all miners
This endpoint returns all miners. Note: value may be cached
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.NetApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
NetApi apiInstance = new NetApi();
try {
ApiMinerResp result = apiInstance.adminMinersGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#adminMinersGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicMinersFailuresMinerGet
String publicMinersFailuresMinerGet(miner)
Get all miners
This endpoint returns all miners
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.NetApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
NetApi apiInstance = new NetApi();
String miner = "miner_example"; // String | Filter by miner
try {
String result = apiInstance.publicMinersFailuresMinerGet(miner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicMinersFailuresMinerGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
miner | String | Filter by miner |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicNetAddrsGet
List<String> publicNetAddrsGet()
Net Addrs
This endpoint is used to get net addrs
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.NetApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
NetApi apiInstance = new NetApi();
try {
List<String> result = apiInstance.publicNetAddrsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicNetAddrsGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
List<String>
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
publicNetPeersGet
List<String> publicNetPeersGet()
Net Peers
This endpoint is used to get net peers
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.NetApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
NetApi apiInstance = new NetApi();
try {
List<String> result = apiInstance.publicNetPeersGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicNetPeersGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
List<String>
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json